package com.itheima.myreflect2.Student.test1.test2;

/**
 * @program: Myset
 * @description:lamdba操作带参数无返回值的情况
 * @author: xuejingjing
 * @create: 2021-06-13 18:51
 **/
public class TestLambda1 {
    public static void main(String[] args) {
        useStringHandler((msgg)->{
            System.out.println(msgg);
        });

    }


    public static void useStringHandler(StringHandler handler){
        handler.printMessage("itheima");
    }
}

interface  StringHandler{
   void printMessage(String msg);
}
